# @Time : 2020/7/16 11:18
# @Author : Fioman 
# @Phone : 13149920693
"""
创建一副图像,然后左边全部红色,中间绿色,右边全部蓝色.
"""
import cv2 as cv
import numpy as np

img = np.zeros((300,300,3),dtype=np.uint8)
img[:,0:100,2] = 255
img[:,100:200,1] = 255
img[:,200:300,0] = 255
print("img=\n",img)
cv.imshow("img",img)
cv.waitKey(0)
cv.destroyAllWindows()
